import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

// 引入模块
import app from '@/store/modules/app'
import user from '@/store/modules/user'
import permission from './modules/permission'
// 引入getters文件
import getters from '@/store/getters'


export default new Vuex.Store({
  // 计算属性
  getters,
  modules: {
    // 模块名
    app,
    user,
    permission
  }
})
